/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-05-24
 * Time: 14:49
 */
public class Test {
    public static void main(String[] args) {
        int sum=0;
        for (int i = 100; i <201; i++) {
            sum+=i;
        }
        System.out.println(sum);

        int i=100;
        sum=0;
        while(i<=200){
            sum+=i;
            i++;
        }
        System.out.println(sum);
    }
}
